package top.dprkshow.springboothelloworld;

/**
 * @author Kent HAN
 * @date 2021/7/5
 */
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import top.dprkshow.springboothelloworld.AOP2.UserService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations= "classpath:spring-aspectj.xml")
public class UserDao2AspectJ {

    @Test
    public void aspectJTest(){
        UserService userService = new UserService();
        userService.serveUser();
    }

}